/**
 * Copyright (c) 2020 wuchenxi
 * walter-blog is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 * http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 * <p>
 * <p>
 * Mulan Permissive Software License，Version 2
 * <p>
 * Mulan Permissive Software License，Version 2 (Mulan PSL v2)
 * January 2020 http://license.coscl.org.cn/MulanPSL2
 */
package com.walter.blog.business.content.service;

import com.walter.db.pojo.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.walter.response.ResponseKit;
import com.walter.vo.category.CategoryListVO;

import java.util.List;

/**
 * <p>
 * 分类 服务类
 * </p>
 *
 * @author wuchenxi
 * @since 2020-12-25
 */
public interface CategoryService extends IService<Category> {

    /**
     * 新增分类
     *
     * @param category
     * @return
     */
    ResponseKit<Object> add(Category category);

    /**
     * 分类列表
     *
     * @return
     */
    ResponseKit<List<CategoryListVO>> listCategory();

    /**
     * 删除分类
     *
     * @param categoryId
     * @return
     */
    ResponseKit<Object> delete(String categoryId);
}
